/**
 * Copyright (C) 2010-2011 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.seequencer.client.instruments;

import org.seequencer.client.common.AudioElement;
import org.seequencer.client.common.Note;

import com.google.gwt.user.client.ui.IsWidget;

/**
 * A simple drum machine that plays kicks, snares, hihats and stuff like that.
 * 
 * @author ra
 */
public class TR909jsPresenter implements Instrument {

	public interface View {

		IsWidget asWidget();

	}

	/////////////////////////////////////////////////////////////
	// Instrument samples from excellent JS-909 project. 
	// With permission from Cameron Adams. Thanks!
	// 
	// http://www.themaninblue.com/experiment/JS-909/
	/////////////////////////////////////////////////////////////
	String kickDataSrc = "data:audio/wav;base64,UklGRhwMAABXQVZFZm10IBAAAAABAAEAgD4AAIA+AAABAAgAZGF0Ya4LAACAgICAgICAgICAgICAgICAgICAgICAgICAf3hxeH+AfXZ1eHx6dnR5fYGFgoOKi42aloubq6GOjI2Op7ythXJ0eYF5aV1AOFFib32HmZSHhpCalIiYi4SRkZaLfnhxaWptb21qaWBea2BRYmZTVmFgWFNXVVVhaGdbYGhZbXh1gXZ1goeIlot1k6yxtKaOkaWhq7KonKCZoaCjoKWuqqmurK6ztrO7tbTAvru/vb68vbW6vLGqsLOfm5yal5KKhoyBeHt2dXBnbmljVlJWUEBBPDw9Mi4zKRwhIBYaGRQcHBURGB0XFxwhGxocJSstMjg6PTc6PUxVV1lWV2JqaXN0coCHhIyPjpOenqWppK6xu72yxMu9us7Pw83Wy9nY29ve6OPr6uvs6ezu6ejk6erm3uPj3dbT1sjBzdDFuMHAt7m1r7W6qaCupJOTkpWPgHqAd3JrbGlnY1peX1hTUk9PTFRKR0R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OCgoOEhIKCgYKDg4KBgoCAf4CAgIB/fn9/fX59fH5+fX5+fX19fn1/f35+f4CAgICAgICBgYGDhISDhIODg4ODgoODgYKCgYKCgYCBgoKBgoOCg4OCg4KCgoGBgoGCgYGBgICAf3+Afn1+fXx8fHt8fHt6e318fXx9e3t8fXx9fn18fXx8fX1+f35/fn19fn5/fn9+f35/gICAgICAgICBgYKCgYKAgYKBgIGBgoODg4KBgoKDgoOCgYGCgYKBgYGCgYCAgICBgH+Af4B/fn9+f359fn9+fn1+fn1+fX5/f39/foB/f4CBgIGAgIKBgYGCg4KCg4KDgoSDhIODhISDgoOCg4KDg4KCg4KDgoKDg4KDgoGCg4KCgYKCgYCBgIGAgICAgICAgICAgICAgICAgICAgH9/gIB/gH+Af4CAgIGAgICAgYCBgoKBgoOCgYKDhIOEg4SEhYSDhIOEg4KCgYGAgIGBgICAf4CAgIB/f4CAf4CAgICAgICAgIGBgIGAgYGCgYGAgIB/gIB/f4B/fX59fX5/fn59f35/f3+AgICAgH+AgICAgH+AgH9+fn5/f35/fn1+fX1+fn1/foB/gH9/gICAgICAgICAgICBgoGBgYCBgYCAgYKBgoKBgoGBgoGBgYKBgIGCg4KBgYKCgoKDgoOCg4KBgoKBgIGBgICAgIB/f35/fn9+f35/f3+Af4B/gH9/gH+Af4B/gH+Af4CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGAgYCAgYCBgIGAgYCBgIGAgYCBgIGAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBgIGAgYCBgIGAgYCBgIGAgYCBgIGAgYCBgIGAgYCBgIGAgYCBgIGAgYCBgIGAgYCBgIGAgYCBgIGAgICAgICAgICAgICAgICBgICAgYCBgIGAgYCBgIGAgYCBgICAgICAgICAgICAgICAgICBgIGAgYCBgIGAgYCBgIGAgYCBgIGAgYCBgIGAgYGAgIGAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBgIGAgYCBgIGAgYCBgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGBgIGAgYCBgIGAgYCBgIGAgICAgICAgICAgICAgICAgICAgICAgICAgIGAgYCBgIGAgYCAgYCAgICAgICAgICAgICAgICAgICAgICAgICAgICBgIGAgYCBgICAgICAgICAgICAgICAgICAgICBgIGAgYCAgYCBgIGAgICAgICAgICAgICAgICAgICAgICAgABMSVNUQgAAAElORk9JQ1JEDAAAADIwMDgtMDktMjEAAElFTkcDAAAAIAAAAUlTRlQWAAAAU29ueSBTb3VuZCBGb3JnZSA4LjAAAA==";
	String hatOpenSrc = "data:audio/wav;base64,UklGRqAQAABXQVZFZm10IBAAAAABAAEAgD4AAIA+AAABAAgAZGF0YTEQAACGiYiJiYiJiImIiYiJiImIiYiJho2KjYmIjo2BloqEio17iJKEdZORfnqVgoOIhYuPi4GCoHeHmIGWfo2KiYOBjYx+h5SIh5l+iouKhYuPh4OWgYqBlX+KiYuPfY6Lh46Dj4uHkXuIkIKKhYuHh42EjIaHgo+MhIOElYOCjoiMho6EjoyNf5mLhJWLjICHjoSIiIGOjoOElJCQhIGQhoeHiZWJgJ2Gi4+AhpGAgYiNi4CKh4OOhomMioyDiZaAiISJjIGLh4eNgYGSgIqDhZaHfYqLi4KGlIOHiYqIjImIhIiVgnyXgnyZhYiOf4uIk4F8lX6Fjn2Pi36GipN+hoGafoyOgIyLe46Te4mGiI6IioSSgIeJk4N3lYmAg5F8gJmHfpyAiYyIhJSGf5SMfpGJg4CPjHyPjoGJmYCDio6IgY2IhY6Gh4ONhYSEkYOGjYOEkIGOj4CagoqMiYiGh5CChomGioaJiYmLgIuViICPioWOj4SLi5B5kZJ4iJh7hpmDioqO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IiYiJiImIiYmIiYmIiYiJiIiJiYiJiImIiYiIiYiIiImIiYeIiYiIiImJiImIiIiIiIiJiIiJiIiIiYmIiYiJiImIiYiIiYiIiYiIiYmIiImIiYmIiYeIiYiIiImIiYiIiYiJiImIiYiIiImJiIiJiYiJiYiIiYiIiImIiImJiYiIiYiIiYiJiImIiImIiYiJiYeJiIiIiImIiYiJiIiJiImJiImIiYiJiImIiImIiYiIiIiJiIiIiImIiIiJiIiJiIiIiImIiImIiYiIiYiJiImJiImIiYiIiYiJiImIiYmIiYiIiYiJiImIiYiJiImJiIiIiImIiImIiYmIiIiIiYiJiImJiImIiIiJiIiJiImIiYiJiImIiYiJiImJiImIiYiJiIiIiImIiIiIiImIiYiIiYiIiYiJiImIiYiJiIiJiImIiYiJiYiJiImIiImIiYiIiYiJiImIiImIiYiJiImIiYiJiImIiYiJiImIiImIiYiJiImIiYiIiYiJiImIiYiJiImIiYiJiImJiYmIiYiJiImIiYiJiImIiYiJiImIiYiJiImIiYiJiImIiIiJiIiIiIiIiIiIiYiIiImIiIiJiIiIiYiIiImIiIiJiIiIiYiIiImIiYiJiImIiYiJiImIiYiJiImIiYiJiImIiYiJiImIiYiJiImIiABMSVNUQgAAAElORk9JQ1JEDAAAADIwMDgtMDktMjEAAElFTkcDAAAAIAAAAUlTRlQWAAAAU29ueSBTb3VuZCBGb3JnZSA4LjAAAA==";
	String hatCloseSrc = "data:audio/wav;base64,UklGRvACAABXQVZFZm10IBAAAAABAAEAgD4AAIA+AAABAAgAZGF0YSUCAACDk4yHlY2QiZKGlYmShJCKiYaQkIGBpH+ajYCdh5p/iYaVfI2AhImEjXahc5OXgJWHkomhho+XgJKSiYmKioqNlYOQgJ56pH+bipOXkImEipKAjYqAjHmTf42EiZWAkoyKmImVl4aQkoqShJiThqCGl4CXh4mKl4yPjYyEio19moOSk5CNmIaMl5OJlYyJk4yPiZKJkI2QgJqAm4abipWTkJWPhp56l4qHjY2Mj4SXgKSAlYmXh5qNk4+TiZeMjIy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YKBgoGCgYKBgoGBgoGCgoODg4ODg4SEhISDhISDgoGCgYGCgIGAgYKCgoGBhISDhISDhIOEhIKDgoKDgYKCgYGAgYGAgYGBgYGAgYKBgYGBgYKCgoGBgIGBgYCAgICAgH9+f3+Af4CAgIGBgYGCgYGAgICAgH5/fn99fX19fXx+fX5+f3+Af4CAgICAgICAgICAgH9+fn59fn1+f31/f3+Af4CAgH+AgICAgICAgIB/gH9+fX5+fn5/f4B/f4CAgICAgICAgICAgICAgICAgICAgICAgH9/f39+fn9/f3+AgICAgICAgYGBgYCBgICAgIB/gIB/gICAgIGBgIKCgoKCg4KCg4KCgoGBgYGBgICBgICAgICAgICBgoGCgoGCgoKBgYKBgYGBgYGAgICAgH+AgICAgYGDgoKDg4OCgYKBgYCAgICAgH9/gH9/f4CAgH+AgICAgICBgYGAgYGBgICAgICAgICAgIB/fn5/fn9/gICAgICBgIGAgYCAgICAf39/fn1+fX59fn1+fn9/f39/f4B/f39/f35/f39/fn9/fn9/fn9+fn5+fn9+f35/f3+AgICAgICAgH9/f35/fn59fX59fn5+fn+AgICAgICBgYCBgICBgICAgICAgICAgICAgICAgICAgICBgIGBgIGCgYKBgoKBgIGAgICAgICAgICAgICBgYKBgoKCg4OCgoKBgoGBgIGAgYCBgIGBgoGBgoKBgYKCgoKCgoGCgYKBgoGCgYGAgIGAgICAgICAgIGAgYGCgYKDgoOCgoKBgYGAgICAgICAgICAgICAgIGAgYGBgYCBgIGAgYCAgICAgICAgICAf4B/gICAf4CAgICAgIGAgYCBgICAgICAf39/f359fn5+fn9+f35/f4CAgICAgICAf4B/gH9/gH+Af35/fn9/fn+Af4B/f4CAgICAgICAgICAgICAf4B/f35/fn9+f3+Af4CAgICAgIGAgYCAgICAgICAgICAgICAgICAgICAgIGAgYCBgYCBgoGBgYGAgYCAgICAgIB/gIB/f4CAgICBgICBgIGBgYGAgYCAgYCBgICBgICAgICAgICAgYCAgYCBgIGAgYCBgIGAgICAgIB/gH+Af4CAf4B/gICAgIG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4eIhoJ/foCDhYN+eXl8gIKAfHl5fH+AgH58e3x9f4CAfnp6foOFgn98fYCEhYOBgH+AgISEgn97fICDhIF8enyAgYGAfn1/gYOCgH9+f4GCgoF/fn5/gICAfnx8foCHjImCfoGLkY6Ff3x/hIeCe3Z1eHt8fHx7d3V4f4WGgXt6f4eKhoB+f4KFhYSCgH9/gYSEgn98e36DhIB7enx+gICAfnx8foGEhIF+foCDhYaDgH9/goSDgH99fH+BgYB8e3yAgIB+fH5/f319gIGAfnx+g4SBfXx/g4SDgH+AgYODg4KBgH+AgYODgH59gIGCgoB+f3+BgoGAfn6AgYOAfn1+f4CBgYB9fX5/gYSGgX19hIuKh398foKGgn94eHt8fnyAfHx+fX6Bg4N+eHh8goN+e3h5gH99eXyAgYSFhYN/fX1+gIOBgIB/f4CDgYCDgX+Agn9+e3p7e316fn97e32AfX9/fICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIA=";

	AudioElement audioElementKick;
	AudioElement audioElementSnare;
	AudioElement audioElementHatOpen;
	AudioElement audioElementHatClose;
	AudioElement audioElementClap;
	AudioElement audioElementBongo1;
	AudioElement audioElementBongo2;
	AudioElement audioElementWork;

	TR909jsPresenter.View view;

	public TR909jsPresenter(TR909jsPresenter.View view) {
		this.view = view;
		this.audioElementKick = new AudioElement(kickDataSrc);
		this.audioElementSnare = new AudioElement(snareDataSrc);
		this.audioElementHatOpen = new AudioElement(hatOpenSrc);
		this.audioElementHatClose = new AudioElement(hatCloseSrc);
		this.audioElementClap = new AudioElement(clapSrc);
		this.audioElementBongo1 = new AudioElement(bongo1Src);
		this.audioElementBongo2 = new AudioElement(bongo2Src);
		this.audioElementWork = new AudioElement(workSrc);
	}

	/**
	 * I am playing drums. And I am taking notes from 21-28
	 * 
	 * 
	 */
	@Override
	public void playNote(Note note) {

		if (note.tone == 21) {
			audioElementKick.play();
		} else if (note.tone == 22) {
			audioElementSnare.play();
		} else if (note.tone == 23) {
			audioElementHatOpen.play();
		} else if (note.tone == 24) {
			audioElementHatClose.play();
		} else if (note.tone == 25) {
			audioElementClap.play();
		} else if (note.tone == 26) {
			audioElementBongo1.play();
		} else if (note.tone == 27) {
			audioElementBongo2.play();
		} else if (note.tone == 28) {
			audioElementWork.play();
		}

	}

	public IsWidget asWidget() {
		return view.asWidget();
	}

}
